﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Answers.aspx.cs" Inherits="EXAM.Admin.Page_Admin.Answers" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlacebody" runat="server">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td>
                <table cellpadding="0" cellspacing="6" border="0" class="tableForm" id="tblManagePartner">
                    <tr>
                        <td colspan="5" align="center" class="formTitle">
                            Answer
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <div id="divError">
                                <asp:Label ID="lbErr" runat="server"></asp:Label>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            &nbsp;
                        </td>
                        <td style="width: 25%;">
                            <p>Question</p>
                            <telerik:RadButton ID="btnQuest" runat="server" Text="&lt;&lt; Back Question" onclick="btnQuest_Click">
                            </telerik:RadButton>
                        </td>
                        <td style="width: 20px; height: 28px;">
                            &nbsp;
                        </td>
                        <td style="height: 28px" colspan="2">
                            <telerik:RadTextBox ID="txtQuest" runat="server" Height="80px" ReadOnly="True" TextMode="MultiLine"
                                Width="500px">
                            </telerik:RadTextBox>
                            <telerik:RadComboBox ID="cbbQuestion" runat="server" EnableTextSelection="False"
                                Visible="False">
                            </telerik:RadComboBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                        </td>
                        <td style="width: 25%; height: 28px;">
                            Description
                        </td>
                        <td style="width: 20px; height: 28px;">
                        </td>
                        <td style="height: 28px" colspan="2">
                            <telerik:RadTextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="300px">
                            </telerik:RadTextBox>
                            <telerik:RadTextBox ID="txtID" runat="server" Visible="False" Width="50px">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            &nbsp;
                        </td>
                        <td style="width: 25%; height: 28px;">
                            Explanation
                        </td>
                        <td style="width: 20px; height: 28px;">
                            &nbsp;
                        </td>
                        <td style="height: 28px" colspan="2">
                            <telerik:RadTextBox ID="txtExplanation" runat="server" TextMode="MultiLine" Width="300px">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;
                        </td>
                        <td class="style3">
                            Text answer
                        </td>
                        <td class="style4">
                            &nbsp;
                        </td>
                        <td class="style3" colspan="2">
                            <telerik:RadTextBox ID="txtTextanswer" runat="server" Width="300px" TextMode="MultiLine">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;
                        </td>
                        <td class="style3">
                            Order answer
                        </td>
                        <td class="style4">
                            &nbsp;
                        </td>
                        <td class="style3" colspan="2">
                            <telerik:RadTextBox ID="txtOrder_Answer" runat="server" Width="300px">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;
                        </td>
                        <td class="style3">
                            Is right
                        </td>
                        <td class="style4">
                            &nbsp;
                        </td>
                        <td class="style3" colspan="2">
                            <asp:CheckBox ID="cbIsRight" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;
                        </td>
                        <td class="style3">
                            Enabled
                        </td>
                        <td class="style4">
                            &nbsp;
                        </td>
                        <td class="style3">
                            &nbsp;
                            <asp:RadioButtonList ID="rdlEnabled" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True" Value="1">Enabled</asp:ListItem>
                                <asp:ListItem Value="0">Disabled</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                        <td class="style3">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="height: 18px">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
    </table>
    <div style="margin: auto; width: 350px">
        <telerik:RadButton ID="btnNew" runat="server" Text="Add New" SplitButtonCssClass=""
            SplitButtonPosition="Right" OnClick="btnNew_Click" Width="100px">
        </telerik:RadButton>
        <telerik:RadButton ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click"
            Width="100px">
        </telerik:RadButton>
        <telerik:RadButton ID="btnDelete" runat="server" Text="Delete" OnClick="btnDelete_Click"
            Width="100px">
        </telerik:RadButton>
    </div>
    <telerik:RadGrid ID="dgvList" runat="server" AutoGenerateColumns="False" GridLines="None"
        Skin="Office2007" AllowFilteringByColumn="True" AllowMultiRowSelection="True"
        AllowPaging="True" AllowSorting="True" OnItemCommand="dgvList_ItemCommand" ShowGroupPanel="True"
        OnNeedDataSource="dgvList_NeedDataSource">
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Office2007">
        </HeaderContextMenu>
        <MasterTableView PageSize="20" DataKeyNames="ID">
            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridButtonColumn CommandName="Selected" FilterControlAltText="Filter column column"
                    Text="Edit" UniqueName="column3">
                </telerik:GridButtonColumn>
                <telerik:GridClientSelectColumn FilterControlAltText="Filter column column" UniqueName="column8">
                </telerik:GridClientSelectColumn>
                <telerik:GridBoundColumn FilterControlAltText="Filter column1 column" HeaderText="Description"
                    UniqueName="column1" DataField="Description">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn FilterControlAltText="Filter column2 column" HeaderText="Explanation"
                    UniqueName="column2" DataField="Explanation">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Des_Question" FilterControlAltText="Filter column column"
                    HeaderText="Question" UniqueName="column">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Type" FilterControlAltText="Filter column6 column"
                    HeaderText="Type" UniqueName="column6">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ANAL_Q0" FilterControlAltText="Filter column7 column"
                    HeaderText="Category" UniqueName="column7">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="IsRight" FilterControlAltText="Filter column4 column"
                    HeaderText="Is right" UniqueName="column4">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Enabled" FilterControlAltText="Filter column column"
                    HeaderText="Enabled" UniqueName="column5">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <ClientSettings AllowDragToGroup="True">
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
</asp:Content>
